/*
 * @Author: your name
 * @Date: 2020-08-25 17:38:00
 * @LastEditTime: 2020-08-27 11:33:11
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \youlunzx\js\contact.js
 */
$(function() {
    var swiper = new Swiper('.swiper-container', {
        spaceBetween: 30,
        centeredSlides: true,
        autoplay: {
            delay: 5000,
            disableOnInteraction: false,
        },
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        },
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    });
    // 百度地图API功能
    var map = new BMapGL.Map("map");
    var point = new BMapGL.Point(116.280190, 40.049191); //这个地方标经纬度，经纬度查找方法在百度地图上面能找到，直接替换就行,因为我不知道甲方你们位置，
    map.centerAndZoom(point, 15);

    var opts = {
        position: point, // 指定文本标注所在的地理位置
        offset: new BMapGL.Size(-30, -30) //设置文本偏移量
    }
    var label = new BMapGL.Label("<div style='text-align:center;'>绿色智能江海直达船舶与邮轮游艇研究中心<br>地址：xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>", opts); // 创建文本标注对象
    label.setStyle({
        color: 'red',
        fontSize: '12px',
        height: '20px',
        lineHeight: '20px',
        fontFamily: '微软雅黑'
    });
    map.addOverlay(label);
})